<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:body>
        <div class="change_contai">
            <div class="cn">
                <h3 style="color: #3F8AAC; padding: 0 0 0 120px;">Change Password</h3>
                <p style="margin-left: 50px;">Here you can change your password. <br/>Click 'Save' after you have finished making the changes.</p>
                <table>
                    <h:form>
                        <tbody>
                            <tr>
                                <td style="text-align: right;">Old Password:</td>
                                <td>
                                    <p:password value="#{employeeManagedBean.oldPass}" feedback="true" minLength="0"/>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right;">New Password:</td>
                                <td>
                                    <p:password value="#{employeeManagedBean.newPass}" feedback="true" minLength="0"/>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right;" >Confirm New Password:</td>
                                <td>
                                    <p:password value="#{employeeManagedBean.confirmpass}" feedback="true" minLength="0"/>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right; " ></td>
                                <td>
                                    <h:commandButton value="Save" action="#{employeeManagedBean.changePassword}"></h:commandButton>
                                    <input type="reset" value="Reset"/>
                                </td>
                            </tr>
                        </tbody>
                    </h:form>
                </table>
            </div>
        </div>
    </h:body>
</html>

